/**  
  -- The Performance Driven Lime Project -- 

  A self adaptive tuple space for mobile agents and hosts by dynamic
  adapting tuple's replication policy.
  
  Copyright (C) 2008
  Xing Jiankuan, Pan Wenhui
  SAGroup of Tsinghua University

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  Lesser General Public License for more details.

  You should have received this copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
 */
package lime2;

/**
 * The external protocols that extend Lime basic protocols. If
 * want to extend Lime, you should implement this interface and
 * register to {@link lime2.Protocols} before any operation is
 * initiated.
 * 
 * @author Xing Jiankuan
 *
 */
public interface ExternalProtocols {
	/**
	 * Select a protocol according to RemoteOp
	 * @param ro the remote operation object by which protocol is selected 
	 * @return the selected protocol, or null if not found
	 * @author Xing Jiankuan
	 */
	Protocol select(RemoteOp ro);
}
